<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view>
			<text class="title">{{title}}</text>
			<uv-button text="前往测试页" v-on:click="toPage1"></uv-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					text: '点赞',
					color: 'blue',
					fontSize: 28
				}, {
					text: '分享'
				}, {
					text: '评论'
				}],
				show: true,
				title: 'Hello'
			}
		},
		onLoad() {
			this.wln.post('/service/login', (res) => {
				this.wln.confirm(res.titleName,() => {console.log(res.titleName)})
			}, {'姓名':'张三','性别':'男'}, true)
		},
		methods: {
			toPage1() {
				uni.navigateTo({ url: '/pages/test/page1' }) //跳转页面
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin: 200rpx auto 50rpx auto;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
